package cn.csust.net2.manager.client.module;

import cn.csust.net2.manager.client.app.App;
import cn.csust.net2.manager.client.chat.UserTreePanel;
import cn.csust.net2.manager.shared.po.User;
import cn.csust.net2.manager.shared.util.ClassForNameAble;


@ClassForNameAble
public class TalkOnline extends BaseModule{
	private User user;
	public TalkOnline(){
		
		this.user = App.getUser();
		this.setText("在线交流");
		this.setId("在线交流");
		this.setClosable(true);
		this.addStyleName("pad-text");
		init();
	}
	
	void init(){
		UserTreePanel userTreePanel = new UserTreePanel(user);
		this.add(userTreePanel);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}